﻿using Microsoft.AspNetCore.Builder;
using System;
using System.Collections.Generic;
using System.Text;

namespace Having.Site.Route
{
    /// <summary>
    /// 路由中间件
    /// </summary>
    public static class RouteMiddlewareExtensionscs
    {
        /// <summary>
        /// 中间件
        /// </summary>
        /// <param name="builder"></param>
        /// <returns></returns>
        public static IApplicationBuilder UseSiteRouteMiddleware(this IApplicationBuilder builder)
        {
            return builder.UseMiddleware<RouteMiddleware>();
        }
    }
}
